package oohomework;

public class Dog extends Animal implements Swim{
    Dog(String name,int age,String color)
    {
        super(name,age,color);
    }

    void eat()
    {
        System.out.println(name+" eat bone,age:"+age);
    }
    public void swim()
    {
        System.out.println(name+" swim,age:"+age);
    }
    void lookHome()
    {
        System.out.println(name+" dog look home,age:"+age);
    }
}
